package priv.yiyuan.example.design.visitor;

/**
 * 数据库同步访问者
 *
 * @author YiYuan
 * @data 2025/7/30
 * @apoNote
 */
public class DatabaseSyncVisitor implements DataSyncVisitor {

    @Override
    public void visit(CrmCustomerData data) {
        System.out.println("Syncing CRM customer to DB: " + data.getName());
    }

    @Override
    public void visit(ErpOrderData data) {
        System.out.println("Syncing ERP order to DB: " + data.getOrderId());
    }

    @Override
    public void visit(CmsContentData data) {
        System.out.println("Syncing CMS content to DB: " + data.getTitle());
    }
}
